import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import datav from '@jiaminghi/data-view'
import ECharts from 'vue-echarts'
import { use } from "echarts/core";

// 手动引入 ECharts 各模块来减小打包体积
import {
    CanvasRenderer
} from 'echarts/renderers'
import {
    BarChart,
    MapChart
} from 'echarts/charts'
import {
    TooltipComponent,
    VisualMapComponent,
    GeoComponent,
} from 'echarts/components'

use([
    CanvasRenderer,
    BarChart,
    TooltipComponent,
    GeoComponent,
    VisualMapComponent,
    MapChart,
]);

const app = createApp(App)
app.component('vue-echarts', ECharts)

app.use(store)
  .use(router)
  .use(datav)
  .mount('#app')

